#define _CRT_SECURE_NO_WARNINGS 1
#pragma once
#include "RBTree.h"
namespace lnb
{
template<class K>
class set
{
	struct KeyOfValue
	{
		const K& operator()(const K& key)
		{
			return key;
		}
	};
public:
	typedef typename RBTree<K,  K, KeyOfValue>::const_iterator iterator;
	typedef typename RBTree<K, K, KeyOfValue>::const_iterator const_iterator;
	iterator begin()
	{
		return _tree.begin();
	}

	iterator end()
	{
		return _tree.end();
	}

	pair<iterator,bool> insert(const K& key)
	{
		return _tree.insert(key);
	}

private:
	typedef RBTree<K, K,KeyOfValue> RBTree;
	RBTree _tree;
};


}